package com.chang.bootplus.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.chang.bootplus.base.database.Page;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;


@Data
@Accessors(chain = true)
public class NewsVO extends Page {

    @ApiModelProperty("资讯标题")
    private String title;

    @ApiModelProperty("资讯标签")
    private String label;

    @ApiModelProperty("资讯领域类别")
    private String field;

    @ApiModelProperty("资讯封面图")
    private String image;

    @ApiModelProperty("资讯内容")
    private String context;

    @ApiModelProperty("添加时间")
    @JsonFormat(timezone = "GMT+8", shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreate;
}
